package java02;

import java.util.Scanner;

public class java02_5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
    if(a>100||a<=0)
    {
        System.out.println("输入数字不合法");

    }
    else {
        for(int i=2;i<a;i++) {
            if (a % i == 0) {
                System.out.println("不是质数");
                return;
            }
        }
         System.out.println("是质数");

    }
    }
}
